package pattern.decorator.cake.v1;

/**
 * @author juxiaojun
 * @since 2019-05-12
 */
public class PancakeTest {
    public static void main(String[] args) {
        Pancake pancake = new Pancake();
        System.out.println(pancake.getMsg() + ",总价格：" + pancake.getPrice());

        PancakeWithEgg pancakeWithEgg = new PancakeWithEgg();
        System.out.println(pancakeWithEgg.getMsg() + ",总价格：" + pancakeWithEgg.getPrice());

        PancakeWithEggAndSausage pancakeWithEggAndSausage = new PancakeWithEggAndSausage();
        System.out.println(pancakeWithEggAndSausage.getMsg() + ",总价格：" + pancakeWithEggAndSausage.getPrice());
    }
}
